package com.pignest.hotel.dao;

import java.util.Date;
import java.util.List;

import com.pignest.framework.dao.Dao;
import com.pignest.hotel.beans.Booking;
import com.pignest.hotel.beans.Room;
import com.pignest.hotel.definition.BookingStatus;

/** 预订 */
public interface BookingDao extends Dao {
	
	/** 根据名字, 电话查询预订信息
	 * @param valid 是否只列出当前有效的预订信息 */
	public List<Booking> query(String name, String phone, final BookingStatus status);
	
	public List<Booking> query(Date startTime, Date endTime);
	
	/** 最近的有效预订 */
	public Booking getBookingByRoom(Room room);
	
}
